package drama

type Page struct {
	Limit  int   `json:"limit"`
	Offset int   `json:"offset"`
	ID     int32 `json:"id"`
}

type Create struct {
	Name        string  `json:"name" binding:"required"`        // 剧本名
	Cover       string  `json:"cover"`                          // 封面图
	Description string  `json:"description" binding:"required"` // 剧本简介
	Origin      string  `json:"origin" binding:"required"`      // 剧本来源
	Duration    int32   `json:"duration" binding:"required"`    // 持续时长 单位秒
	Score       float64 `json:"score"`                          // 评分
	Difficulty  float64 `json:"difficulty"`                     // 难度
}

type Role struct {
	DramaId     int32  `json:"drama_id" binding:"required"`
	Name        string `json:"name" binding:"required"`
	Gender      int32  `json:"gender" binding:"required"`
	Description string `json:"description" binding:"required"`
	Cover       string `json:"cover"`
}

type GetRoles struct {
	DramaId int32 `json:"drama_id" binding:"required"`
}

type AddContent struct {
	RoleId  int32  `json:"role_id" binding:"required"`
	Content string `json:"content" binding:"required"`
	Step    int32  `json:"step"`
}

type EditContent struct {
	ID      int32  `json:"id" binding:"required"`
	Content string `json:"content" binding:"required"`
}

type GetContent struct {
	RoleId int32 `json:"role_id" binding:"required"`
	Step   int32 `json:"step"`
}
